package com.gridmobi.xrtb.routers.bidding;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/")
public class CollecterController {

    private static final Logger collectLogger = LoggerFactory.getLogger("collect");


    @PostMapping("offlinelog")
    public void offlinelog(@RequestParam(name = "msg", defaultValue = "") String msg) throws Exception {
        if (StringUtils.isNotBlank(msg)) {
            collectLogger.warn(msg);
        }
    }

}
